import { defHttp } from '@/utils/http/axios';

export interface ProcessFormBind {
  id?: number;
  processId: string;
  formId: number;
  status?: string;
  // ...其他字段
}

export function getBindList(params: any) {
  return defHttp.get({ url: '/workflow/processFormBind/list', params });
}

export function getBindDetail(id: number) {
  return defHttp.get({ url: `/workflow/processFormBind/${id}` });
}

export function addBind(data: ProcessFormBind) {
  return defHttp.post({ url: '/workflow/processFormBind', data });
}

export function editBind(data: ProcessFormBind) {
  return defHttp.put({ url: '/workflow/processFormBind', data });
}

export function deleteBinds(idList: number[]) {
  return defHttp.delete({ url: `/workflow/processFormBind/batch/${idList.join(',')}` });
}
